package com.todod.model;

import java.io.Serializable;
import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * @author dyl
 * @date 2022-09-05
 */
@TableName("LTCLOUD_ZSGL_DB_DEV.catalog_manage")
public class CatalogManage implements Serializable {

	private static final long serialVersionUID = 1L;

	/** 主键id */
	@TableId("cm_id")
	private Long id;
	/** 目录code */
	@TableField("cm_code")
	private String code;
	/** 目录名称 */
	@TableField("cm_name")
	private String name;
	/** 状态 */
	@TableField("cm_state")
	private String state;
	/** 备注 */
	@TableField("cm_remark")
	private String remark;
	/** 创建用户id */
	@TableField("cm_createuser_id")
	private Long createuserId;
	/** 创建时间 */
	@TableField("cm_createtime_ti")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private LocalDateTime createtimeTi;
	/** 修改用户名id */
	@TableField("cm_modifyuser_id")
	private Long modifyuserId;
	/** 修改时间 */
	@TableField("cm_modifytime_ti")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private LocalDateTime modifytimeTi;

	@TableField(exist = false) // 表示该属性在数据表里不存在
	private String createuserName;// 上级目录名称

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public Long getCreateuserId() {
		return createuserId;
	}

	public void setCreateuserId(Long createuserId) {
		this.createuserId = createuserId;
	}

	public LocalDateTime getCreatetimeTi() {
		return createtimeTi;
	}

	public void setCreatetimeTi(LocalDateTime createtimeTi) {
		this.createtimeTi = createtimeTi;
	}

	public Long getModifyuserId() {
		return modifyuserId;
	}

	public void setModifyuserId(Long modifyuserId) {
		this.modifyuserId = modifyuserId;
	}

	public LocalDateTime getModifytimeTi() {
		return modifytimeTi;
	}

	public void setModifytimeTi(LocalDateTime modifytimeTi) {
		this.modifytimeTi = modifytimeTi;
	}

	public String getCreateuserName() {
		return createuserName;
	}

	public void setCreateuserName(String createuserName) {
		this.createuserName = createuserName;
	}

	@Override
	public String toString() {
		return "CatalogManage [id=" + id + ", code=" + code + ", name=" + name + ", state=" + state + ", remark="
				+ remark + ", createuserId=" + createuserId + ", createtimeTi=" + createtimeTi + ", modifyuserId="
				+ modifyuserId + ", modifytimeTi=" + modifytimeTi + ", createuserName=" + createuserName + "]";
	}

}
